﻿using System.Runtime.Serialization;
using System.Collections.ObjectModel;

namespace FU.Capstones.IMS.Web.Common.InventoryServiceProxy.Respondents
{
    [DataContract(Namespace = WebConstants.ServiceNamespace, Name = "{0}CollectionFeedback")]
    public class CollectionFeedback<T> : Feedback
    {
        private ObservableCollection<T> data;
        [DataMember]
        public ObservableCollection<T> Data 
        {
            get { return data; }
            set
            {
                if (!ReferenceEquals(data, value))
                {
                    data = value;
                    RaisePropertyChanged(() => Data);
                }
            }
        }
    }
}
